package com.ym.b2b.product.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.ym.b2b.product.sqlbean.EmBProductPicture;

public interface EmBProductPictureDAO {

    Long searchPageEmBProductPictureNum(EmBProductPicture embproductpicture) throws DataAccessException;

    void searchPageEmBProductPicture(EmBProductPicture embproductpicture) throws DataAccessException;

    void insertEmBProductPicture(EmBProductPicture record) throws DataAccessException;

    int updateEmBProductPicture(EmBProductPicture record) throws DataAccessException;

    List<EmBProductPicture> searchEmBProductPicture(EmBProductPicture key) throws DataAccessException;

    EmBProductPicture showEmBProductPictureDetail(EmBProductPicture key) throws DataAccessException;

    int deleteEmBProductPicture(Long pictureId) throws DataAccessException;

    Integer codeHasDefault(String productCode) throws DataAccessException;

    void doDefaultPicture(String productCode) throws DataAccessException;
}
